package com.yzf.demo.demo.Thread;

/**
 * Created by 于占峰 on 2020/3/28/028.
 * 继承Thread类 重写run方法
 */
public class ThreadDemoBean extends Thread {
    @Override
    public void run() {
        System.out.println("当前线程:" + Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        ThreadDemoBean threadDemoBean = new ThreadDemoBean();
        threadDemoBean.start();
    }
}
